﻿@using HelloMinasan.Configuration

@{
    ViewBag.Title = "Log On";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@{if (Request.IsAuthenticated)
  {
    <div>
        <img src='@Url.Content("~/Content/Images/user.png")' width="16" height="16"/>
        @User.Identity.Name's Space
          <div class="optionMenu">
              <a href="@Url.Action("UserInformation", "Account")">
                  <img src='@Url.Content("~/Content/Images/settings.png")' width="16" height="16" />
                  My Space
              </a>
              <a href="@Url.Action("MyFriendsList", "UserManagement")">
                  <img src="@Url.Content("~/Content/Images/social.png")" width="16" height="16" />
                  My favourite users
              </a>
               <a href="@Url.Action("MyFavouriteSongs", "UserManagement")">
                  <img src="@Url.Content("~/Content/Images/folder_favorite.png")" width="16" height="16" />
                  My favourite songs
              </a>
              <a href="@Url.Action("UnreadMail", "MailBox")">
                  <img src="@Url.Content("~/Content/Images/messagenew.png")" width="16" height="16" />
                  Mail box
              </a>
              <a href="@Url.Content("~/UserManagement/MySong/" + User.Identity.Name)">
                  <img src="@Url.Content("~/Content/Images/song.png")" width="16" height="16" />
                  My all songs
              </a>
              @if(User.Identity.Name.ToLower() == "admin"){
                  <hr size="1" color="#ccc" />
                  <a href="@Url.Content("~/Admin/Index")">
                      <img src="@Url.Content("~/Content/Images/owner.png")" width="16" height="16" />
                      Website Management
                  </a>
                  <hr size="1" color="#ccc" />
              }
              @*<a href="@Url.Action("LogOff", "Account")">*@
              <a href="@GeneralSetting.WebsiteLogin/Members/LogOut">
                  <img src='@Url.Content("~/Content/Images/logout.png")' width="16" height="16" />
                  Log off
              </a>
          </div>
    </div>
  }
  else
  {
           
    <a href="@GeneralSetting.WebsiteLogin/Members/LogOn">
        <img src="@Url.Content("~/Content/Images/login.png")" width="16" height="16" /> LogOn</a>
  }
}